// pages/service-detail/components/consumer-action/publisher-action.js
import serviceType from "../../../../enum/service-type";
import behavior from  "../behavior";

Component({
  /**
   * 组件的属性列表
   */ 
  behaviors:[behavior],
  properties: {
    // service:Object
  },

  /**
   * 组件的初始数据
   */
  data: {
    serviceTypeEnum: serviceType
  },

  /**
   * 组件的方法列表
   */
  methods: {
    //联系对方
    handleChat(){
      // console.log('联系对方'); 
      this.triggerEvent('chat')
    },
    // 立即预约
    handleOrder(){
      // console.log('立即预约'); 
      this.triggerEvent('order')
    }

  }
})
